Carbon


PlotSICNHandle

Header: Icons.h Carbon status: Supported

Draws a small icon of resource type 'SICN' to which you have a handle.

OSErr PlotSICNHandle (
    const Rect *theRect, 
    IconAlignmentType align, 
    IconTransformType transform, 
    Handle theSICN
);
theRect

A pointer to the rectangle in which to draw the icon, specified in local coordinates of the current graphics port.

align

Specifies how the function should align the icon within the rectangle. See “Alignment Type Values” for a description of the values you can use in this parameter.

transform

Specifies how the function should modify the appearance of the icon. See “Transform Type Values” for a description of the values you can use in this parameter.

theSICN

A handle to the icon to draw. You can obtain a handle to the icon using GetResource or other Resource Manager functions.

function result

A result code.

DISCUSSION

Only 'SICN' resources with a single member—or with two members, the second of which is a mask for the first—plot correctly.

SPECIAL CONSIDERATIONS

This function may move or purge memory blocks in the application heap. For that reason, your application should not call it at interrupt time.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/18/2000)